package com.hehua.StatePattern;

/**
 * 账户状态类,充当抽象状态类
 */
public abstract class AccountState {
    protected Account acc;
    public abstract void deposit(double amount);
    public abstract void withdraw(double amount);
    public abstract void computeInterest();
    public abstract void stateCheck();
}
